import java.util.Scanner;

public class HomeWork03_09{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        
        System.out.print("please enter two integers: ");
        int a = scan.nextInt();
        int b = scan.nextInt();
                
        if(a%b == 0 || b%a == 0){
            System.out.println("True");
        }else{
            System.out.println("False");
        }
    }
}